package com.princess.demok.ui

import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.LargeTest
import androidx.test.rule.ActivityTestRule
import com.princess.demok.R
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import androidx.test.espresso.assertion.ViewAssertions.*
import androidx.test.espresso.matcher.ViewMatchers.*

/**
 * @author: W9072388
 * @date: 2021/12/3
 * @Description:
 */
@LargeTest
@RunWith(AndroidJUnit4::class)
class MainActivityTest {
    @Rule
    @JvmField
    val mActivityTestRule = ActivityTestRule(com.princess.demok.ui.MainActivity::class.java)

    @Test
    fun mainActivityTest() {
        onView(withId(R.id.tvThemeMain)).check(matches(isDisplayed()))
    }


}